﻿using DMC.Core.Models.Dto;
using DMC.Core.Models.Queries;
using MiniFox.Infrastructure;

namespace DMC.Core.Providers
{
    public interface IConnectionProvider
    {
        ResultObject<object[]> GetDbProviders();
        void Test(string provider, string connectionString);
        bool Create(ConnectionDto connection);
        bool Update(ConnectionDto connection);
        bool Delete(ConnectionDto connection);
        ResultObject<IEnumerable<ConnectionDto>> Query(QueryObject<ConnectionQuery> request);
        void Sync();

    }
}
